deno cacheコマンド
code:deno cache --help
$ deno cache --help
Cache and compile remote dependencies recursively.
Download and compile a module with all of its static dependencies and save
them in the local cache, without running any code:
deno cache jsr:@std/http/file-server
Future runs of this module will trigger no downloads or compilation unless
--reload is specified.
Usage: deno cache OPTIONS <file>... Arguments:
<file>...
Options:
Skip type-checking. If the value of '--no-check=remote' is supplied,
diagnostic errors from remote modules will be ignored.
--import-map <FILE>
Load import map file from local file or remote URL.
-q, --quiet
Suppress diagnostic output
--no-remote
Do not resolve remote modules
--no-npm
Do not resolve npm modules
Enables or disables the use of a local node_modules folder for npm packages
UNSTABLE: Enables or disables the use of a local vendor folder for remote modules and node_modules folder for npm packages
-c, --config <FILE>
The configuration file can be used to configure different aspects of
deno including TypeScript, linting, and code formatting. Typically the
configuration file will be called deno.json or deno.jsonc and
automatically detected; in that case this flag is not necessary.
--no-config
Disable automatic loading of the configuration file.
Reload source code cache (recompile TypeScript)
--reload
Reload everything
--reload=jsr:@std/http/file-server
Reload only standard modules
--reload=jsr:@std/http/file-server,jsr:@std/assert/assert-equals
Reloads specific modules
--reload=npm:
Reload all npm modules
--reload=npm:chalk
Reload specific npm module
Check the specified lock file.
If value is not provided, defaults to "deno.lock" in the current working directory.
--lock-write
Force overwriting the lock file.
--no-lock
Disable auto discovery of the lock file.
--cert <FILE>
Load certificate authority from PEM encoded file
Enable type-checking. This subcommand does not type-check by default.
If the value of '--check=all' is supplied, diagnostic errors from remote modules
will be included.
Alternatively, the 'deno check' subcommand can be used.
-h, --help
Print help (see a summary with '-h')
--unstable
Enable unstable features and APIs
--unstable-bare-node-builtins
Enable unstable bare node builtins feature
--unstable-byonm
Enable unstable 'bring your own node_modules' feature
--unstable-sloppy-imports
Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing.
--unstable-broadcast-channel
Enable unstable BroadcastChannel API
--unstable-cron
Enable unstable Deno.cron API
--unstable-ffi
Enable unstable FFI APIs
--unstable-fs
Enable unstable file system APIs
--unstable-http
Enable unstable HTTP APIs
--unstable-kv
Enable unstable Key-Value store APIs
--unstable-net
Enable unstable net APIs
--unstable-process
Enable unstable process APIs
--unstable-temporal
Enable unstable Temporal API
--unstable-unsafe-proto
Enable unsafe __proto__ support. This is a security risk.
--unstable-webgpu
Enable unstable WebGPU API
--unstable-worker-options
Enable unstable Web Worker APIs